//
//  InquiryRecordCell.m
//  Runone
//
//  Created by runone02 on 16/11/21.
//  Copyright © 2016年 runone. All rights reserved.
//

#import "InquiryRecordCell.h"

@interface InquiryRecordCell ()

@property (weak, nonatomic) IBOutlet UILabel *DepartureL;//出发地
@property (weak, nonatomic) IBOutlet UILabel *beginTimeL;//出发时间

@property (weak, nonatomic) IBOutlet UILabel *destinationL;//目的地
@property (weak, nonatomic) IBOutlet UILabel *endTimeL;    //到达时间

@end

@implementation InquiryRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void) setRecordModel:(HistoryRecordModel *)recordModel {
    _recordModel = recordModel;
    
    _DepartureL.text = [NSString stringWithFormat:@"出发地:%@",recordModel.Origin];
    _beginTimeL.text = recordModel.PlanDepartureTime;
    
    _destinationL.text = [NSString stringWithFormat:@"目的地:%@",recordModel.Destination];
    _endTimeL.text     = recordModel.PlanArrivalTime;
}


@end
